package sxt.service;

import sxt.entity.Announcement;

import java.util.Date;
import java.util.List;

public interface AnnouncementService {
    //查找所有公告
    List<Announcement> findAllComment();

    //插入指定公告C
    int addAnnocement(String announcement, Date date);

    //查询指定公告R
    Announcement findOneAnnouncement(int id);

    //修改指定公告U
    int changeAnnouncement(int id,String announcement);

    //删除指定公告D
    int removeAnnouncement(int id);
}
